package router

import (
	"github.com/gin-gonic/gin"
	"seat-service/api"
)

var searchRecordApi api.SearchRecordApi

type searchRecordRouter struct {
}

func (*searchRecordRouter) searchRecordGroup(router *gin.RouterGroup) *gin.RouterGroup {
	search := router.Group("searchRecord")
	{
		search.POST("get", searchRecordApi.GetByPage)        // 分页查询学生的个人搜索记录
		search.POST("save", searchRecordApi.Save)            //  根据个人搜索的关键词，id创建和更新用户搜索记录
		search.DELETE("/delete/:id", searchRecordApi.Delete) // 根据记录id删除用户搜索记录
	}
	return search
}
